$("#svg-canvas").keyup(canvasKeyUp)

function canvasKeyUp(e) {
    switch (e.which) {
        case 27:  // ESC
            alert("aaaa")
            break;
        default:
            break;
    }
}